<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let add = ["张三", '44', '44', '77', '李四', ' 1', '2', '4', '44', '77', ]

        function set(add) {
            return [...new Set(add)]

        }
        var result = set(add)

        function aset(add) {
            return Array.from(new Set(add))

        }
        var result = set(add)
        var results = aset(add);
        console.log(result);
        console.log(results);
    </script>
</body>

</html>